<template>
  <div id="px">{{pxlist}}
  </div>
</template>

<script>
export default {
  data () {
    return {
      testArray: [],
      pxlist: ''
    }
  },
  methods: {
    derangedArray () {
      let arr = this.testArray
      for (let i = 1; i <= 1000; i++) {
        this.testArray.push(i)
      }
      for (var j, x, i = arr.length; i; j = parseInt(Math.random() * i), x = arr[--i], arr[i] = arr[j], arr[j] = x);
      console.log(arr)
    }
  },
  mounted () {
    this.derangedArray()
  }
}
</script>
